import { IsString, MaxLength, IsNumber } from 'class-validator';

export class CreatePostDTO {
  @IsString()
  readonly title: string;

  @IsString()
  readonly text: string;

  @IsString()
  readonly userId: string;

  @IsString({
    each: true,
  })
  readonly tags: string[];
}
